package com.tm.media.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author Ly
 * @Data 2023/2/22 14:10
 * @ClassName NewsEntity
 */
@Data
@TableName("wm_news")
public class NewsEntity {
    @TableId(type = IdType.AUTO)
    private Integer	id;
 private int channel_id;
 @TableField(exist = false)
 private  String channelName;
 private String content;
 private String image;
    @TableField(exist = false)
    private List<String> images;
 private String labels;
 @TableField(exist = false)
 private String publish_time;
 private int status;
 private  String title;
 private String type;
    private  Integer	userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private   LocalDateTime createdTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd",timezone = "GMT+8")
    private   LocalDateTime publishTime;
 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd",timezone = "GMT+8")
    private  LocalDateTime	submitedTime;
    private  String	reason;
    private  Integer	articleId;


}
